package com.dt76.smallloanbackenduser.remote.lhuaw;

import com.dt76.smallloanbackenduser.hystrix.lhuaw.userFeedbackHystrix;
import com.dt76.smallloanbackenduser.pojo.lhuaw.UserFeedback;
import com.dt76.smallloanbackenduser.utils.Page;
import com.dt76.smallloanbackenduser.utils.Result;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name="smallloan-backend-service",fallback = userFeedbackHystrix.class)
public interface UserFeedbacktest {
    //系统消息
    @RequestMapping("/lhuaw/qryAllFeedback")
    List<UserFeedback> qryAllFeedback();
    @RequestMapping("/lhuaw/qryConditionPageAllFeedback")
    public Page qryConditionPageAllFeedback(
            @RequestParam("pageIndex") int pageIndex,
            @RequestParam("userName")String userName,
            @RequestParam("feedbackQuestion")String feedbackQuestion);
    //删除
    @RequestMapping("/lhuaw/deleteFeedback")
    public Result deleteFeedback(@RequestParam("ufId") int ufId);
}
